<extend name="Index::index"/>
<block name="main">
    <!--右边区域-->
    <div class="layout-content">
        <div class="page-title">电影管理</div>
        <div class="content-top">
            <ul class="top-nav">
                <li class="active"><span>电影列表</span></li>
            </ul>
            <div class="clearfix"></div>
        </div>

        <!--content-main start-->
        <div class="container-fluid content-main">
            <div class="row">
                <div class="col-md-12">
                    <div class="col-md-12">

                        <?php if(isset($_SESSION['message'])){
                            $message = $_SESSION['message'];
                            unset($_SESSION['message']);
                            ?>
                        <div class="ui-tips bg-info">
                            <span class="icon glyphicon glyphicon-info-sign"></span>
                            <span><?php echo  $message ?></span>
                        </div>
                        <?php } ?>
                    <form action="{:U('User/update',['id'=>$_GET['id']])}" method="post" class="form-horizontal">

                        <div class="form-group">
                            <label class="col-sm-2 control-label">用户名</label>
                            <div class="col-sm-8">
                                <input type="text" name="username" value="{$list.username}" class="form-control">
                                <span class="help-block"></span>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">密码</label>
                            <div class="col-sm-8">
                                <input type="password" name="password"
                                       value="{$list.password_hash}" class="form-control">
                                <span class="help-block"></span>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">影院名称</label>
                            <div class="col-sm-8">
                                <input type="text" name="name" value="{$list.name}" class="form-control">
                                <span class="help-block"></span>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">影院地址</label>
                            <div class="col-sm-8">
                                <input type="text" name="address" value="{$list.address}" class="form-control">
                                <span class="help-block"></span>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-8">
                                <button type="submit" class="btn btn-default">修改</button>
                            </div>
                        </div>
                    </form>


                </div>
            </div>
        </div>
        <!--content-main end-->
    </div>



</block>